//封装本地存储数据函数
export const SET_TOKEN = (token: string | null) => {
  if (token) {
    localStorage.setItem("TOKEN", token);
  }
};

//封装清除本地存储数据函数
export const REMOVE_TOKEN = () => {
  localStorage.removeItem("TOKEN");
};

//封装读取本地存储数据函数
export const GET_TOKEN = () => {
  return localStorage.getItem("TOKEN");
};
